Add a new output column in the result.
Parent Type: LearningStoreQuery
Namespace: Microsoft.LearningComponents.Storage
Assembly: Microsoft.LearningComponents.Storage.dll
| C# |
|
public void AddColumn ( ) |
columnName
Name of the column that should be returned in the result.
| Exception type | Condition |
| ArgumentNullException | columnName is a null reference. |
| InvalidOperationException | The column has already been added, or the column name wasn't found in the view. |
See the LearningStoreQuery documentation for more information about creating and executing queries.
The following code creates a new query and adds two output columns:
| C# |
LearningStoreQuery query = store.CreateQuery("UserItem");
query.AddColumn("Id");
query.AddColumn("Name");
|